#include "secondobject.h"
#include <QDebug>
#include <QThread>

SecondObject::SecondObject(QObject *parent) : QObject(parent)
{

}

SecondObject::~SecondObject()
{

}

void SecondObject::TaskBySecondObject()
{
    qDebug() << "SecondObject ThreadId is " << QThread::currentThreadId();
    for(int index = 1; index <= 10; index++){
        qDebug() << "SecondObject Index is " << index;
        QThread::msleep(500);
    }
    emit signalQuit();
}
